package com.itheima.job;

import com.itheima.service.OrderSettingService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@JobHandler(value = "job.cleanordersetting") //  web配置JobHandler的名称
@Component
public class CleanOrderSettingJob extends IJobHandler {

    @Reference
    private OrderSettingService settingService;
    @Override
    public ReturnT<String> execute(String s) throws Exception {
        settingService.CleanOrderSetting();
        return null;
    }
}